home *** CD-ROM | disk | FTP | other *** search
/ La Bible Des… Fonts / La Bible des... Fonts.iso / Utilitaires / EPS Fixer 1.52 / Scripting EPS Fixer / EPS Fixer Dictionary Notes < prev    next >
Encoding:
Text File  |  1995-01-22  |  3.5 KB  |  91 lines  |  [TEXT/R*ch]

  1. This is a partial listing of the EPS Fixer scripting dictionary.
  2. I've included some additional notes below. Most of the core
  3. and required suites are not shown in this document. 
  4. I've not defined any custom events because everything 
  5. can be done using set and get data commands.
  6.  
  7. get: Get the data for an object
  8.     get  reference  -- the object whose data is to be returned
  9.     Result:     -- The data from the object
  10.  
  11. set: Set an object╒s data
  12.     set  reference  -- the object to change
  13.         to  anything  -- the new value
  14.  
  15. paste: paste into an object
  16.     paste  reference  -- the object to paste into
  17.  
  18. open: Open the specified object(s)
  19.     open  reference  -- Objects to open. Can be a list of files or an object specifier.
  20.  
  21. Class window: A Window
  22. Properties:
  23.     bounds  bounding rectangle  -- the boundary rectangle for the window
  24.     closeable  boolean  [r/o]  -- Does the window have a close box?
  25.     titled  boolean  [r/o]  -- Does the window have a title bar?
  26.     index  integer  -- the number of the window
  27.     floating  boolean  [r/o]  -- Does the window float?
  28.     modal  boolean  [r/o]  -- Is the window modal?
  29.     resizable  boolean  [r/o]  -- Is the window resizable?
  30.     zoomable  boolean  [r/o]  -- Is the window zoomable?
  31.     zoomed  boolean  -- Is the window zoomed?
  32.     name  string  [r/o]  -- the title of the window
  33.     visible  boolean  -- is the window visible?
  34.     position  point  -- upper left coordinates of window
  35. **** Window Notes ****
  36. The status window may be accessed as ' window "Status" ' Saving
  37. and closing may be done using a window object, but using the document
  38. may be better.
  39.  
  40.  
  41. Class document: A Document
  42. Properties:
  43.     name  string  [r/o]  -- the title of the document
  44.     modified  boolean  [r/o]  -- Has the document been modified since the last save?
  45.     preview  picture  -- The PICT preview
  46.     bounding box  bounding rectangle  -- The EPS bounding box
  47.     PICT rectangle  bounding rectangle  -- The rectangle for the PICT preview
  48.     has EPSI  boolean  [r/o]  -- Whether or not the file has an EPSI preview
  49.     has text preview  boolean  [r/o]  -- Whether or not the file has any text preview
  50.     has PICT preview  boolean  [r/o]  -- Whether or not the file has a PICT preview
  51. *** Document Notes ***
  52. A document corresponds to a particular EPS file. You can use the
  53. frontWindowName property to access documents generically. For
  54. example, to load a file, and set the PICT rectangle to the bounding box, you
  55. can do the following:
  56.  
  57. tell application "EPS Fixer"
  58.   open "My Disk:My Folder Path:My EPS File"
  59.   tell document frontWindowName
  60.     set PICT rectangle to bounding box
  61.   end tell
  62.   close document frontWindowName
  63. end tell
  64.  
  65. This will also work between documents:
  66.  
  67. tell application "EPS Fixer"
  68.   open "My Disk:My Folder Path:My EPS File"
  69.   tell document frontWindowName
  70.     set PICT rectangle to bounding box of "some other document"
  71.   end tell
  72.   close document frontWindowName
  73. end tell
  74.  
  75.  
  76. Class application: Application properties
  77. Elements:
  78.     window by numeric index, by name
  79.     document by name
  80. Properties:
  81.     frontWindowName  string  [r/o]  -- the name of the front window
  82.     showStatus  boolean  -- show status window on startup
  83.     uponOpening  do nothing/set PICT to bounding box/set bounding box to PICT  -- what to do to an epsf file when it is opened
  84.     uponModifying  do nothing/set PICT to bounding box/set bounding box to PICT  -- what to do to an epsf file when a picture is pasted into the file
  85.     findPreview  boolean  -- always look for a text preview
  86. *** Application Notes ***
  87. The frontWindowName property always contains the name of the front
  88. window.
  89.   The remaining parameters correspond to the settings in the preferences
  90. dialog.
  91.